package com.gmall.model.enums;

import lombok.Getter;

@Getter
public enum CouponStatus {
    NOT_USED("未使用"),
    USE_RUN("使用中" ),
    USED("已使用");
    
    private String comment ;

    CouponStatus(String comment ){
        this.comment=comment;
    }

    public static void main(String[] args) {
        System.out.println(CouponStatus.NOT_USED.ordinal());
        System.out.println(CouponStatus.NOT_USED.name());
        System.out.println(CouponStatus.NOT_USED.getComment());

        System.out.println(CouponStatus.USE_RUN.ordinal());
        System.out.println(CouponStatus.USE_RUN.name());
        System.out.println(CouponStatus.USE_RUN.getComment());
    }
}